package com.openvas.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.openvas.commons.common.annotation.Excel;
import com.openvas.commons.common.core.domain.BaseEntity;

/**
 * 与host相关联，以asset_id作为纽带获取信息，点开某个host，显示的是此中的一些内容对象 table_identifier
 * 
 * @author ruoyi
 * @date 2021-11-04
 */
public class TableIdentifier extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点开某个Host显示的信息是这个表中数据的集合 */
    private String identifierId;

    /** identifier的名称 */
    @Excel(name = "identifier的名称")
    private String name;

    /** name所对应的值 */
    @Excel(name = "name所对应的值")
    private String value;

    /** 创建的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** asset的id，可以与主机显示相连 */
    @Excel(name = "asset的id，可以与主机显示相连")
    private String assetId;

    public void setIdentifierId(String identifierId) 
    {
        this.identifierId = identifierId;
    }

    public String getIdentifierId() 
    {
        return identifierId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setValue(String value) 
    {
        this.value = value;
    }

    public String getValue() 
    {
        return value;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setAssetId(String assetId) 
    {
        this.assetId = assetId;
    }

    public String getAssetId() 
    {
        return assetId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("identifierId", getIdentifierId())
            .append("name", getName())
            .append("value", getValue())
            .append("creationTime", getCreationTime())
            .append("source", getSource())
            .append("assetId", getAssetId())
            .toString();
    }
}
